function CheckConnected()
{
	GetPageContent('GET', 'functions/GetIsConnectedBoolean.php', '', CallbackCheckConnected, null, true);
	return;
}

function CallbackCheckConnected(success, text, param)
{
	if(text == '1')
		Connected = true;
	else
		Connected = false;
		
	return;
}

function UptdateNumberItemsPanier()
{
	GetPageContent('GET', 'functions/GetNumberItemsPanier.php', '', CallbackUptdateNumberItemsPanier, null, true);
	return;
}

function CallbackUptdateNumberItemsPanier(success, text, param)
{
	var divnumber = document.getElementById('divnumberitemspanier');
	if(divnumber == null)
		divnumber = parent.document.getElementById('divnumberitemspanier');
	
	if(success)
	{
		if(text == '0')
			divnumber.innerHTML = '';
		else
			divnumber.innerHTML = '('+text+')';
	}
	
	return;
}

function AfficherLecteur(show)
{
	var divlecteur = document.getElementById('lecteur');
	divlecteur.style.visibility = show == '1' ? 'visible' : 'hidden';
	
	return;
}